package teaching.io;

/**
 * .
 * 
 * @author ��ά
 *
 */
public class Employee {

  private int id;
  private String name;
  private double salary;

  public int getId() {
    return id;
  }

  public void setId(int id) {
    this.id = id;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public double getSalary() {
    return salary;
  }

  public void setSalary(double salary) {
    this.salary = salary;
  }

  /**
   * .
   */
  public Employee() {
    this(0, "", 0.0d);
  }

  /**
   * .
   * 
   * @param id
   *          ��ţ�
   * @param name
   *          ������
   * @param salary
   *          н�ʣ�
   */
  public Employee(int id, String name, double salary) {
    super();
    this.id = id;
    this.name = name;
    this.salary = salary;
  }

  @Override
  public String toString() {
    return "Employee [id=" + id + ", name=" + name + ", salary=" + salary + "]";
  }

}
